#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
struct str
{
	int a;
	int arr[];
};
int main()
{
	struct str* p = (struct str*)malloc(sizeof(struct str) + 10 * sizeof(int));
	if (p == NULL)
	{
		free(p);
		return 1;
	}
	p->a = 10;
	for (int i = 0; i < 10; i++)
	{
		p->arr[i] = i + 1;
	}
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", p->arr[i]);
	}
	free(p);
	return 0;
}